@import '@/styles/index.scss';

.career-page {
  width: 100%;

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    background-color: $bgc;
    z-index: 99;

    .item {
      flex: 1;
      padding: 20rpx 0;
      line-height: 50rpx;
      font-size: $fsm;
      color: $fc;
      text-align: center;
      cursor: pointer;

      &.on {
        background-color: $fc-on;
        color: #fff;
      }
    }
  }

  .body {
    padding-top: 90rpx;

    .wrapper {
      display: none;
      padding: $pd 35rpx;

      &.on {
        display: block;
      }

      .list {
        display: flex;
        flex-wrap: wrap;

        .item {
          position: relative;
          width: 220rpx;
          height: 220rpx;
          background-color: $bgc;
          margin-bottom: 10rpx;
          margin-right: 10rpx;
          overflow: hidden;
          box-sizing: border-box;

          &:nth-child(3n) {
            margin-right: 0;
          }

          &.add {
            padding: 70rpx;
          }

          .image {
            position: relative;
            display: block;
            width: 100%;
            height: 100%;
            z-index: 1;
          }


        }
      }
    }

    .photo {

      .list {

        .item {
          display: flex;
          align-items: center;

          .hendle {
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 50%;
            left: 50%;
            width: 180rpx;
            transform: translate(-50%, -50%);
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 10rpx;
            text-align: center;
            z-index: 99;

            .box {
              margin: 20rpx;
              text-align: center;

              .icon {
                display: inline-block;
                vertical-align: top;
                width: 40rpx;
                height: 40rpx;
              }

              .text {
                font-size: $fss;
                color: $fc;
              }
            }
          }
        }
      }
    }

    .video {

      .list {

        .item {

          .video-box {
            position: relative;
            display: block;
            width: 100%;
            height: 100%;
            z-index: 1;

            .hendle {
              display: flex;
              align-items: center;
              justify-content: center;
              position: absolute;
              top: 0;
              right: 0;
              border-radius: 10rpx;
              text-align: center;
              z-index: 99;

              .box {
                margin: 15rpx;
                text-align: center;

                .icon {
                  display: inline-block;
                  vertical-align: top;
                  width: 40rpx;
                  height: 40rpx;
                }
              }
            }
          }
        }
      }
    }
  }

  .url-modal {

    .modal-mask {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, .5);
      z-index: 100;
    }

    .modal-box {
      position: fixed;
      top: 130rpx;
      left: 35rpx;
      right: 35rpx;
      border: 2rpx solid $bdc;
      border-radius: 10rpx;
      background-color: #fff;
      z-index: 1000;

      .title {
        padding: 20rpx;
        text-align: center;
        background-color: #fff;
      }

      .content {
        padding: 0 20rpx;
        box-sizing: border-box;

        .textarea {
          width: 100%;
          padding: 20rpx;
          background-color: $bgc;
          box-sizing: border-box;
        }
      }

      .buttons {
        display: flex;
        justify-content: space-between;
        padding: 20rpx $pd;

        .btn {
          padding: 20rpx $pd;
          border-radius: 10rpx;

          &:nth-child(1) {
            border: 2rpx solid $bdc;
            color: $fc;
          }

          &:not(:nth-child(1)) {
            background-color: $fc-on;
            color: #fff;
          }
        }
      }
    }
  }
}





